package ruifight.member.common;

public class CException extends Exception{

	private static final long serialVersionUID = 1L;
	
	/** 错误代码 */
	private int errorCode;
	/** 错误消息 */
	private String errorMessage;

	/**
	 * 
	 * 功能说明：构造函数
	 * @param errorCode 异常消息代码
	 * @param message 异常信息
	 */
	public CException(int errorCode, String message) {
		super(message);
		this.errorCode = errorCode;
		this.errorMessage = message;
	}

	public int getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}
}
